package com.mlearning.demo.mapper;

import com.mlearning.demo.pojo.neo4j.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Mapper
@Repository
public interface BookMapper {
    Book getBookDetail(@Param("id") int id);
    ArrayList<String> getBookTags(@Param("id") int id);
    ArrayList<String> getBookKnows(@Param("id") int id);
    int isSave(@Param("userid") int userid,@Param("bookid") int bookid);
    ArrayList<Book> getRecBooks(@Param("userid") Integer id);
    ArrayList<Book> getTopBooks();
    ArrayList<Book> getRelBooks(@Param("name") String knowName);
}
